package com.exam.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.demo.controller.dto.PaperDTO;
import com.exam.demo.entity.SelectCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 功能描述
 *
 * @author yxj30
 * @date 2022/03/16  19:31
 */
@Mapper
public interface SelectCourseMapper extends BaseMapper<SelectCourse> {
    //使用mybatis获取教师数据，包括学院名
    Page<SelectCourse> findPage(Page<SelectCourse> objectPage, @Param("studentName") String studentName);

    Page<PaperDTO> exam(Page<Object> objectPage, @Param("paper_name") String paperName,@Param("student_id") String studentId,@Param("exam_type") Integer examType);
}
